import request from './request';

const comment = {
    getCommentsListApi(blogId) {
        return request.get(`/api/blogs/${blogId}/comments`);
    },
    createCommentApi(blogId, data) {
        return request.post(`/api/blogs/${blogId}/comments`, data);
    },
    /*updateCommentApi(blogId, commentId, data) {
        return request.put(`/api/blogs/${blogId}/comments/${commentId}`, data);
    },*/
    deleteCommentApi(commentId) {
        return request.delete(`/api/comments/${commentId}`);
    },
};

export default comment;